<template>
    <div>
        <!-- 子组件 -->
        <h2>子组件</h2>
        {{ count }}<br />
        {{ doubleCount }}<br />
    </div>
</template>
<script setup lang='ts'>
import { storeToRefs } from 'pinia'
import { useCounterStore } from './stores/counter'
const counterStore = useCounterStore()
const { count, doubleCount } = storeToRefs(counterStore)

</script>


<style lang='scss' scoped>

</style>